/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SessionPanelForTabbedPane.java
 *
 * Created on Mar 16, 2011, 7:49:01 PM
 */

package GUIFORMS;

/**
 *
 * @author danielsl
 */
public class SessionPanelForTabbedPane extends javax.swing.JPanel {

    /** Creates new form SessionPanelForTabbedPane */
    public SessionPanelForTabbedPane() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        sessionInfoTabbedPane = new javax.swing.JTabbedPane();
        informationPanel = new javax.swing.JPanel();
        sessionNameTextField = new javax.swing.JTextField();
        sessionNameLabel = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        sessionPlaceDropDown = new javax.swing.JComboBox();
        dateLabel = new javax.swing.JLabel();
        sessionTimeLabel = new javax.swing.JLabel();
        sessionTimeFromTextField = new javax.swing.JTextField();
        sessionPlaceLabel = new javax.swing.JLabel();
        sessionToTimeTextField = new javax.swing.JTextField();
        sessionDateTextField = new javax.swing.JTextField();
        preparationPanel = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        sessionPreparationTextArea = new javax.swing.JTextArea();
        evaluatingPanel = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        evaluationTextArea = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();
        expertGroupsTabbedPane = new javax.swing.JTabbedPane();
        expertGroupPanel = new javax.swing.JPanel();
        jScrollPane12 = new javax.swing.JScrollPane();
        goalForTeamTextArea = new javax.swing.JTextArea();
        sessionGoalForTeamLabel = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        customerCheckBox = new javax.swing.JCheckBox();
        sessionDeliveranceForTeamLabel = new javax.swing.JLabel();
        jScrollPane13 = new javax.swing.JScrollPane();
        teamMemberList = new javax.swing.JList();
        facilitatorCheckBox = new javax.swing.JCheckBox();
        jScrollPane14 = new javax.swing.JScrollPane();
        deliveranceForTeamTextArea = new javax.swing.JTextArea();
        secretaryCheckBox = new javax.swing.JCheckBox();

        sessionNameLabel.setText("Navn:");

        jLabel3.setText("-");

        sessionPlaceDropDown.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "---------", "Høgskolen i Sør-Trøndelag" }));
        sessionPlaceDropDown.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sessionPlaceDropDownActionPerformed(evt);
            }
        });

        dateLabel.setText("Dato:");

        sessionTimeLabel.setText("Klokkeslett:");

        sessionTimeFromTextField.setText("Fra");

        sessionPlaceLabel.setText("Plass:");

        sessionToTimeTextField.setText("Til");

        org.jdesktop.layout.GroupLayout informationPanelLayout = new org.jdesktop.layout.GroupLayout(informationPanel);
        informationPanel.setLayout(informationPanelLayout);
        informationPanelLayout.setHorizontalGroup(
            informationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, informationPanelLayout.createSequentialGroup()
                .add(202, 202, 202)
                .add(informationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(informationPanelLayout.createSequentialGroup()
                        .add(sessionTimeLabel)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 157, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, sessionPlaceDropDown, 0, 232, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, informationPanelLayout.createSequentialGroup()
                        .add(informationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, sessionNameLabel)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, dateLabel)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, sessionPlaceLabel)
                            .add(org.jdesktop.layout.GroupLayout.LEADING, sessionNameTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE))
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(informationPanelLayout.createSequentialGroup()
                        .add(sessionTimeFromTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 94, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jLabel3)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(sessionToTimeTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                        .add(1, 1, 1))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, informationPanelLayout.createSequentialGroup()
                        .add(sessionDateTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 231, Short.MAX_VALUE)
                        .add(1, 1, 1)))
                .add(199, 199, 199))
        );
        informationPanelLayout.setVerticalGroup(
            informationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(informationPanelLayout.createSequentialGroup()
                .add(75, 75, 75)
                .add(sessionNameLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(sessionNameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(5, 5, 5)
                .add(dateLabel)
                .add(2, 2, 2)
                .add(sessionDateTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(sessionTimeLabel)
                .add(8, 8, 8)
                .add(informationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.CENTER)
                    .add(sessionToTimeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(sessionTimeFromTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel3))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(sessionPlaceLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(sessionPlaceDropDown, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(108, Short.MAX_VALUE))
        );

        sessionInfoTabbedPane.addTab("Informasjon", informationPanel);

        jLabel7.setText("Forberedelse til sesjon:");

        sessionPreparationTextArea.setColumns(20);
        sessionPreparationTextArea.setRows(5);
        jScrollPane2.setViewportView(sessionPreparationTextArea);

        org.jdesktop.layout.GroupLayout preparationPanelLayout = new org.jdesktop.layout.GroupLayout(preparationPanel);
        preparationPanel.setLayout(preparationPanelLayout);
        preparationPanelLayout.setHorizontalGroup(
            preparationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(preparationPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(preparationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 593, Short.MAX_VALUE)
                    .add(jLabel7))
                .addContainerGap())
        );
        preparationPanelLayout.setVerticalGroup(
            preparationPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(preparationPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel7)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 341, Short.MAX_VALUE)
                .addContainerGap())
        );

        sessionInfoTabbedPane.addTab("Forberedelse", preparationPanel);

        evaluationTextArea.setColumns(20);
        evaluationTextArea.setRows(5);
        jScrollPane1.setViewportView(evaluationTextArea);

        jLabel1.setText("Evaluering av sesjon:");

        org.jdesktop.layout.GroupLayout evaluatingPanelLayout = new org.jdesktop.layout.GroupLayout(evaluatingPanel);
        evaluatingPanel.setLayout(evaluatingPanelLayout);
        evaluatingPanelLayout.setHorizontalGroup(
            evaluatingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(evaluatingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(evaluatingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 593, Short.MAX_VALUE)
                    .add(jLabel1))
                .addContainerGap())
        );
        evaluatingPanelLayout.setVerticalGroup(
            evaluatingPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(evaluatingPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(jLabel1)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 341, Short.MAX_VALUE)
                .addContainerGap())
        );

        sessionInfoTabbedPane.addTab("Evaluering", evaluatingPanel);

        goalForTeamTextArea.setColumns(20);
        goalForTeamTextArea.setLineWrap(true);
        goalForTeamTextArea.setRows(5);
        jScrollPane12.setViewportView(goalForTeamTextArea);

        sessionGoalForTeamLabel.setText("Sesjonsmål for team:");

        jLabel15.setText("Teammedlemmer:");

        customerCheckBox.setText("Kunde");

        sessionDeliveranceForTeamLabel.setText("Sesjonsleveranse for team:");

        teamMemberList.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane13.setViewportView(teamMemberList);

        facilitatorCheckBox.setText("Fasilitator");

        deliveranceForTeamTextArea.setColumns(20);
        deliveranceForTeamTextArea.setLineWrap(true);
        deliveranceForTeamTextArea.setRows(5);
        jScrollPane14.setViewportView(deliveranceForTeamTextArea);

        secretaryCheckBox.setText("Sekretær");

        org.jdesktop.layout.GroupLayout expertGroupPanelLayout = new org.jdesktop.layout.GroupLayout(expertGroupPanel);
        expertGroupPanel.setLayout(expertGroupPanelLayout);
        expertGroupPanelLayout.setHorizontalGroup(
            expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(expertGroupPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel15)
                    .add(jScrollPane13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 162, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(secretaryCheckBox)
                    .add(customerCheckBox)
                    .add(facilitatorCheckBox))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(jScrollPane14, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, sessionDeliveranceForTeamLabel)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, sessionGoalForTeamLabel)
                    .add(org.jdesktop.layout.GroupLayout.LEADING, jScrollPane12, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE))
                .addContainerGap())
        );
        expertGroupPanelLayout.setVerticalGroup(
            expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 359, Short.MAX_VALUE)
            .add(expertGroupPanelLayout.createSequentialGroup()
                .add(8, 8, 8)
                .add(expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(sessionGoalForTeamLabel)
                    .add(expertGroupPanelLayout.createSequentialGroup()
                        .add(jLabel15)
                        .add(expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                            .add(expertGroupPanelLayout.createSequentialGroup()
                                .add(expertGroupPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(expertGroupPanelLayout.createSequentialGroup()
                                        .add(4, 4, 4)
                                        .add(customerCheckBox)
                                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                        .add(facilitatorCheckBox)
                                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                        .add(secretaryCheckBox))
                                    .add(expertGroupPanelLayout.createSequentialGroup()
                                        .add(8, 8, 8)
                                        .add(jScrollPane12, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 139, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(sessionDeliveranceForTeamLabel)
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jScrollPane14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 139, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(expertGroupPanelLayout.createSequentialGroup()
                                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                .add(jScrollPane13)))))
                .addContainerGap())
        );

        expertGroupsTabbedPane.addTab("Gruppe 1", expertGroupPanel);

        sessionInfoTabbedPane.addTab("Ekspertgrupper", expertGroupsTabbedPane);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 680, Short.MAX_VALUE)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(sessionInfoTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 654, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 471, Short.MAX_VALUE)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(sessionInfoTabbedPane, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 451, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void sessionPlaceDropDownActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sessionPlaceDropDownActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_sessionPlaceDropDownActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox customerCheckBox;
    private javax.swing.JLabel dateLabel;
    private javax.swing.JTextArea deliveranceForTeamTextArea;
    private javax.swing.JPanel evaluatingPanel;
    private javax.swing.JTextArea evaluationTextArea;
    private javax.swing.JPanel expertGroupPanel;
    private javax.swing.JTabbedPane expertGroupsTabbedPane;
    private javax.swing.JCheckBox facilitatorCheckBox;
    private javax.swing.JTextArea goalForTeamTextArea;
    private javax.swing.JPanel informationPanel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JPanel preparationPanel;
    private javax.swing.JCheckBox secretaryCheckBox;
    private javax.swing.JTextField sessionDateTextField;
    private javax.swing.JLabel sessionDeliveranceForTeamLabel;
    private javax.swing.JLabel sessionGoalForTeamLabel;
    private javax.swing.JTabbedPane sessionInfoTabbedPane;
    private javax.swing.JLabel sessionNameLabel;
    private javax.swing.JTextField sessionNameTextField;
    private javax.swing.JComboBox sessionPlaceDropDown;
    private javax.swing.JLabel sessionPlaceLabel;
    private javax.swing.JTextArea sessionPreparationTextArea;
    private javax.swing.JTextField sessionTimeFromTextField;
    private javax.swing.JLabel sessionTimeLabel;
    private javax.swing.JTextField sessionToTimeTextField;
    private javax.swing.JList teamMemberList;
    // End of variables declaration//GEN-END:variables

}
